package br.elsa.survey.services;
import javax.ejb.Local;

import br.elsa.survey.domain.survey.Survey;
import br.elsa.survey.services.events.SurveyCreatedEvent;

/**
 * Service responsible to implement all business logic
 * over {@link Survey} entities (creation, deletion, find methods, etc...).
 * 
 * @author diego
 * @since 09/11/2010
 */
@Local
public interface SurveyService {

	/**
	 * Creates a new {@link Survey} in the system and
	 * fire the event {@link SurveyCreatedEvent} to sinalize it.
	 * 
	 * @param survey the survey to be created.
	 */
	public void create(Survey survey);
}
